package com.ruoyi.share.service.impl;

import java.util.List;

import com.ruoyi.share.domain.ShareFeedback;
import com.ruoyi.share.mapper.ShareFeedbackMapper;
import com.ruoyi.share.service.IShareFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 意见反馈Service业务层处理
 *
 * @author ruoyi
 * @date 2021-11-16
 */
@Service
public class ShareFeedbackServiceImpl implements IShareFeedbackService
{
    @Autowired
    private ShareFeedbackMapper shareFeedbackMapper;

    /**
     * 查询意见反馈
     *
     * @param id 意见反馈主键
     * @return 意见反馈
     */
    @Override
    public ShareFeedback selectShareFeedbackById(Long id)
    {
        return shareFeedbackMapper.selectShareFeedbackById(id);
    }

    /**
     * 查询意见反馈列表
     *
     * @param shareFeedback 意见反馈
     * @return 意见反馈
     */
    @Override
    public List<ShareFeedback> selectShareFeedbackList(ShareFeedback shareFeedback)
    {
        return shareFeedbackMapper.selectShareFeedbackList(shareFeedback);
    }

    /**
     * 新增意见反馈
     *
     * @param shareFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int insertShareFeedback(ShareFeedback shareFeedback)
    {
        return shareFeedbackMapper.insertShareFeedback(shareFeedback);
    }

    /**
     * 修改意见反馈
     *
     * @param shareFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int updateShareFeedback(ShareFeedback shareFeedback)
    {
        return shareFeedbackMapper.updateShareFeedback(shareFeedback);
    }

    /**
     * 批量删除意见反馈
     *
     * @param ids 需要删除的意见反馈主键
     * @return 结果
     */
    @Override
    public int deleteShareFeedbackByIds(Long[] ids)
    {
        return shareFeedbackMapper.deleteShareFeedbackByIds(ids);
    }

    /**
     * 删除意见反馈信息
     *
     * @param id 意见反馈主键
     * @return 结果
     */
    @Override
    public int deleteShareFeedbackById(Long id)
    {
        return shareFeedbackMapper.deleteShareFeedbackById(id);
    }
}
